<template>
	<view class="container">
		<view class="detail_1" style="text-align: center;">
			<image src="/static/images/wallet.png" style="width: 140rpx;height: 140rpx;" mode=""></image>
			<view class="" style="font-size: 38rpx;">+299.00</view>
		</view>
		<view class="detail_2">
			<view class="flex between text">
				<view class="">当前状态</view>	
				<view class="">支付成功</view>	
			</view>
			<view class="flex between text">
				<view class="">收款方</view>
				<view class="">开开心心</view>
			</view>
			<view class="flex between text">
				<view class="">支付方式</view>
				<view class="">微信支付</view>
			</view>
			<view class="flex between text">
				<view class="">交易时间</view>
				<view class="">2024-03-31 16:42</view>
			</view>
			<view class="flex between text">
				<view class="">交易单号</view>
				<view class="">20847377443637</view>
			</view>
		</view>
		<view class="flex hcenter between detail_3">
			<view class="">投诉</view>
			<image src="/static/img/yjt80.png" style="width: 30rpx;height: 40rpx;" mode=""></image>
		</view>
		<view class="flex hcenter between detail_4">
			<view class="">帮助</view>
			<image src="/static/img/yjt80.png" style="width: 30rpx;height: 40rpx;" mode=""></image>
		</view>
	</view>
</template>


<script>
	import {
		useStore
	} from '@/store/index.js'
	import {
		onLoad,
		onUnload
	} from "@dcloudio/uni-app"
	import {
		reactive,
		toRefs,
		ref,
		watch,
		computed,
		onMounted,
	} from "vue"
	export default {

		setup() {
			const store = useStore()
			const state = reactive({
				userInfo: computed(() => store.userInfo),
				yuyuelist: [{}, {}, {}],
				pinlunlist: [{}, {}],
				id: '',
				title: '',
				num: 1
			})
			onLoad((option) => {
				console.log(option);
				getData()
				state.id = option.id;
				state.title = option.name;
				uni.setNavigationBarTitle({
					title: '交易详情',
				})
			})

			const getData = async () => {


			}

			return {
				...toRefs(state),
			}
		}

	}
</script>
<style>
	page {
		background-color: #EFEFEF;
	}
</style>
<style lang="scss" scoped>
	/* #ifdef H5 */
	page {
		height: auto;
		min-height: 100%;
	}

	/* #endif */
	.container {
		min-height: 100%;
		background: rgb(244, 244, 244);
	}

	.detail_1 {
		padding: 50rpx 0 30rpx 0;
		background-color: #fff;
	}
	.detail_2{
		margin-top: 1rpx;
		background-color: #fff;
		padding: 40rpx 36rpx 25rpx 36rpx;
		color:#a0a0a0;
	}
	.between{
		justify-content: space-between;
	}
	.text{
		margin: 19rpx 0;
	}
	.detail_3{
		margin-top:32rpx ;
		padding: 34rpx 36rpx;
		background-color: #fff;
	}
	.detail_4{
		margin-top:2rpx ;
		padding: 34rpx 36rpx;
		background-color: #fff;
	}
</style>